

// 引入封装请求
import { get, post,postFormData} from './http'



// 政府监管系统


//主体备案
export const goverment_findByList = p => post('company/findByList', p); //列表
export const goverment_delete = p => get('company/delete/', p);//删除
export const goverment_save = p => postFormData('company/save', p);//新增
export const goverment_check = p => get('company/findById/', p);//查看
export const companyAppmenu = (id) => get('/company/load/appmenus/'+id)
export const companySetAppmenu = (params) => post('/company/set/appmenus',params)

export const control_lists = p => post("/control/app/list/customapp",p)

export const control_app_loadbycompanyId = p => get("/control/app/loadbycompanyId/",p)//获取功能配置   产品名称和版本

export const company_company_setcustomapp = p => post("/company/company/setcustomapp",p)//配置绑定

export const company_get_custmoapp = p => get("/company/get/customapp/",p) // 获取 已绑定的产品 

export const company_change_expiretime = p => post("/company/change/expiretime",p)//时间授权

export const company_get_update = p => get("/company/get/update/",p)//获取时间授权 变更记录 

export const company_resetpassword = p => post("/company/resetpassword",p) //重置密码

// export const company_get_govconfig = p => get("/company/get/govconfig/",p)  //获取配置修改


//消息中心/意见反馈
export const opinion_save = p => post('word/save', p); //新增意见
export const opinion_inquire = p => post('word/inquire', p); //查看意见
export const opinion_search = p => post('word/search', p); //意见反馈模糊搜索意见
export const opinion_selectId = p => post('word/selectId', p); //根据id查询意见

//村镇
export const findAllTenancyMessage = p => post('/cms/findFruitTownPage', p); 
export const findIdMessage = p => get('/cms/delFruitTownById?id='+ p);//根据id删除
export const addIdMessage = p => post('/cms/saveFruitTown', p);//新增编辑
export const findFruitTownList = p => post('/cms/findFruitTownList',{});//查询所有不分页

//消息中心/系统日志
export const systemLog_inquire = p => post('log/inquire', p); //查看系统日志
export const systemLog_search = p => post('log/search', p); //查询
export const systemLog_getOperation = p => get('log/getOperation', p); //查询操作栏目
export const systemMessage_inquire = p => post('news/inquire', p); //查看消息中心

export const systemLog_userActivation = p => post('log/userActivation', p); //查询30天内的活跃用户
export const systemLog_companyActivation = p => post('log/companyActivation', p); //查询30天内活跃的企业

export const systemLog_companyNumber = p => post('company/number', p); //查询公司数量
export const systemLog_userNumber = p => post('user/number', p); //查询用户数量
//首页整体趋势图
export const systemLog_companyNewCompanys = p => post('company/newCompanys', p); //新增月企业数量统计图
export const systemLog_userNewUsers = p => post('user/newUsers', p); //新增月用户数量统计图
export const systemLog_companyCumCompanys = p => post('company/cumCompanys', p); //累计企业数量统计图
export const systemLog_userCumUsers = p => post('user/cumUsers', p); //累计用户数量统计图

//新闻内容管理
export const getBanners = p => post('cms/findBannerList', p); //获取轮播图列表
export const getNews = p => post('cms/findContentList', p); //获取新闻列表
export const findArticleDown = () => get('cms/findArticleDown'); //获取已发布的文章下拉列表

export const saveBanner = (p) => post('cms/saveBanner', p);//修改新增Banner
export const delBanner = (p) => get('cms/delBannerById?id='+p);//删除Banner
export const saveComp = (p) => post('cms/saveComp', p);//保存
export const saveArticle = (p) => post('cms/saveArticle', p);//修改新增文章
export const saveExpert = (p) => post('cms/saveExpert', p);//修改新增专家
export const findExpertPage = (p) => post('cms/findExpertPage', p);//专家列表
export const delExpertById = (p) => get('cms/delExpertById?id='+ p);//删除专家
//授权管理
export const empower_save = p => post('accredit/save', p); //新增授权
export const empower_inquire = p => post('accredit/inquire', p); //查看授权
export const empower_search = p => post('accredit/search', p); //搜索栏
export const empower_selectId = p => post('accredit/selectId', p); //根据id查询授权
export const empower_update = p => post('accredit/update', p); //根据id修改授权回复
//举报投诉
export const report_save = p => post('report/save', p); //新增举报投诉
export const report_inquire = p => post('report/inquire', p); //查看举报投诉
export const report_search = p => post('report/search', p); //搜索栏
export const report_selectId = p => post('report/selectId', p); //根据id查询举报投诉
export const report_update = p => post('report/update', p); //根据id修改举报投诉（回复模块）


export const report_newUsers = p => post('log/newUsers', p); //测试


// 主题审核
export const company_examined = p => post("company/examined",p)  //审核
export const company_examinedlist = p => get("company/examinedlist/",p) //审核记录



// 召回管理
export const recall_page = p => post("/recall/page",p)//列表

export const recall_add = p => post("/plant/recall/add",p)//新增

export const recall_load = p => get("/recall/load/",p)//加载

export const recall_chain = p => post("/plant/recall/chain",p)

export const recall_edit = p => post("/recall/modify",p)
export const company_get_child = p => get("company/get/child",p) // 获取企业



// 数据中心

export const datacenter_initjg = p => get("basesoil/initjg",p) // 获取地块数据
export const datacenter_uniqueId = p => get("/box/uniqueId",p) // 查看12个月的赋码数量
export const datacenter_nuniqueId = p => get("/traceinfo/nuniqueId",p) // 查看12个月的扫码数量

